package com.qingke.oo;

public class TestMyRectangle {

	public static void main(String[] args) {
		MyRectangle m1 = new MyRectangle(0,0,6,5);
		MyRectangle m2 = new MyRectangle(new MyPoint(2,3),new MyPoint(5,6));
		
		System.out.println(m1.getPerimeter());
		System.out.println(m2.getDiagonal());

	}

}
